//
//  WithdrawListCell.m
//  CBT
//
//  Created by Mr.Zhang on 2018/12/17.
//  Copyright © 2018 Mr.Zhang. All rights reserved.
//

#import "WithdrawListCell.h"

@interface WithdrawListCell()

@property (weak, nonatomic) IBOutlet UILabel *listIDLabel;
@property (weak, nonatomic) IBOutlet UILabel *listTimeLabel;
@property (weak, nonatomic) IBOutlet UILabel *listAmountLabel;
@property (weak, nonatomic) IBOutlet UILabel *listStatusLabel;

@end

@implementation WithdrawListCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

-(void)setDrawRecordListModel:(WithdrawItemListModel *)drawRecordListModel
{
    self.listIDLabel.text   = drawRecordListModel.account;
    self.listTimeLabel.text = [NSString getShowDateMonthDayWithTime:[drawRecordListModel.drawDate longLongValue]];
    self.listAmountLabel.text = [NSString stringWithFormat:@"%@ %@",drawRecordListModel.amount,self.symbol];
    self.listStatusLabel.text = [drawRecordListModel.status intValue] == 0 ? kLocalizedString(@"划转失败",nil) :  [drawRecordListModel.status intValue] == 1 ? kLocalizedString(@"划转成功",nil) :  kLocalizedString(@"划转中...",nil);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
